/*    */ package com.yc.util;
/*    */ 
/*    */ public class FormateSQL
/*    */ {
/*    */   public static String getFormateSQL(Object objRegistBeginTime, Object objRegistEndTime, String strSQL)
/*    */   {
/*  6 */     if ((objRegistBeginTime == null) || ("".equalsIgnoreCase(objRegistBeginTime.toString().trim())) || ("null".equalsIgnoreCase(objRegistBeginTime.toString().trim())))
/*  7 */       objRegistBeginTime = null;
/*  8 */     if ((objRegistEndTime == null) || ("".equalsIgnoreCase(objRegistEndTime.toString().trim())) || ("null".equalsIgnoreCase(objRegistEndTime.toString().trim())))
/*  9 */       objRegistEndTime = null;
/* 10 */     if ((objRegistBeginTime != null) && (objRegistEndTime != null))
/* 11 */       strSQL = strSQL + " and '" + objRegistEndTime.toString() + "'>= registtime and  registtime >= '" + objRegistBeginTime.toString() + "' ";
/* 12 */     else if ((objRegistBeginTime == null) && (objRegistEndTime != null))
/* 13 */       strSQL = strSQL + " and '" + objRegistEndTime.toString() + "' >= registtime ";
/* 14 */     else if ((objRegistBeginTime != null) && (objRegistEndTime == null))
/* 15 */       strSQL = strSQL + " and registtime >= '" + objRegistBeginTime.toString() + "'  ";
/* 16 */     return strSQL;
/*    */   }
/*    */ }

/* Location:           E:\java\apache-tomcat-6.0.36\webapps\btsm\WEB-INF\classes\
 * Qualified Name:     com.yc.util.FormateSQL
 * JD-Core Version:    0.6.2
 */